from django.urls import path, include
from .views import draft, review, release
from . import views_class

urlpatterns = [
    path('draft/list/', draft.draft_list, name='draft_list'),
    path('draft/add/', views_class.DraftCreateView.as_view(), name='draft_add'),
    path('draft/<int:nid>', draft.draft_view, name='draft_detail'),
    path('draft/<int:nid>/delete/', draft.draft_delete, name='draft_delete'),
    path('draft/<int:nid>/edit/', draft.draft_edit, name='draft_edit'),
    path('review/<int:nid>', review.review_add, name='review_add'),
    path('review/list', review.review_list, name='review_list'),
    path('review/agree/<int:nid>', review.ReviewAgreeView.as_view(), name='review_agree'),
    path('review/disagree/<int:nid>', review.ReviewDisagree.as_view(), name='review_disagree'),
    path('release/list', release.release_list, name='release_list'),
]
